import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

/**引入ElementUI-Plus核心包 */
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
// import Fragment from 'vue-fragment'


const app = createApp(App)

app.use(store)
app.use(router)

// 全局注册Elementui-ICON
for (const name in ElementPlusIconsVue) {
	app.component(name, (ElementPlusIconsVue as any)[name])
}
app.use(ElementPlus)
// app.use(Fragment.Plugin)
app.mount('#app')